#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
减法运算示例
"""

from mcp.client.stdio import stdio_client
import asyncio

async def main():
    # 连接MCP服务
    client = await stdio_client()
    
    # 调用减法运算
    result = await client.call_tool("subtract", {"a": 10, "b": 4})
    print(f"10 - 4 = {result}")
    
    # 浮点数减法
    result = await client.call_tool("subtract", {"a": 7.5, "b": 3.5})
    print(f"7.5 - 3.5 = {result}")

if __name__ == "__main__":
    asyncio.run(main())